#include "NxServer.h"
#include "../utils/NxHttp.h"
#include "NxServiceAccess.h"
#include <sstream>


int NJGIS::SERVICE::NjServer::setIPAndPort( const char* ip, const int port )
{
	this->setIP(ip);
	if(port > 65535 || port < 0) { return -1; }
	this->setPort(port);
	return 1;
}

NJGIS::SERVICE::INjServiceAccess* NJGIS::SERVICE::NjServer::getServiceAccess()
{
	return new NJGIS::SERVICE::NjServiceAccess(this->getIP(), this->getPort());
}
